//
//  BaseNetManager.h
//  MyPhoneApp
//
//  Created by uuu9 on 16/9/8.
//  Copyright © 2016年 myApp. All rights reserved.
//

#import <Foundation/Foundation.h>

//typedef void(^CompletionHandler)(id,NSError *error);

@interface BaseNetManager : NSObject

/** 对AFHTTPSessionManager的get请求方法进行了封装 */
+ (void)GET:(NSString *)path parameters:(NSString *)params completionHandler:(void(^)(id responseObj, NSError *error))complete;

/** 对AFHTTPSessionManager的POST请求方法进行了封装 */
+ (void)POST:(NSString *)path parameters:(NSMutableDictionary *)params completionHandler:(void(^)(id responseObj, NSError *error))complete;


+ (NSError *)createError:(NSString *)str;



#pragma mark base64加密
+ (NSString *)base64Encoding:(NSString *)encoingStr;

+ (NSString *)base64Decoding:(NSString *)decodingStr;

@end
